Current sensor

ABSTRACT

A current sensor includes a sensing circuit for sensing current and supplying indications thereof. The current sensor also includes two or more output terminals coupled to the sensing circuit that alternately supply respective indications of the sensed current according to control signals supplied to the current sensor.

BACKGROUND

1. Field of the Invention

The present invention relates to current sensors, and more particularly, to current sensors useful in applications such as power supplies.

2. Description of the Related Art

Within various circuit implementations, such as power supplies, there is often a need to detect a current provided at a particular point within a circuit. For example, a detected current may be used as feedback for controlling other parts of a circuit. Various techniques are presently used to sense currents within electronic circuits, but each of these techniques has shortcomings. One approach, illustrated in FIG. 1, utilizes a resistor 102 connected across the inputs of an operational amplifier 104 to provide a voltage V_(SENSE) that may be used to determine a current 106. A low value resistor, in the range of 10 mOhms, may be implemented. However, a drawback of this approach is the high loss provided by the circuit. The high loss may be mitigated by reducing the value of the resistor 102, however, this also reduces the signal V_(SENSE) that may be detected. While this type of circuit may be used to sense current in direct current (DC) applications, the resistor 102 has usually not been capable of being readily integrated.

Referring now to FIG. 2, a further prior art system, utilizing a Hall effect device 202, connected across the inputs of an operational amplifier 204, is illustrated. The Hall effect device 202 generates a voltage across the inputs of the operational amplifier 204, responsive to a current 206, to provide an output signal V_(SENSE). While this approach has a relatively low loss and may be used to detect direct current (DC), the use of the Hall effect device 202 generally provides a circuit having a higher cost. Furthermore, accuracy and noise issues are generally greater in current sensors that implement a Hall device, as the Hall voltage is a relatively small value.

With reference to FIG. 3, a current sensor that uses a magneto resistive sensor is illustrated. The magneto resistive sensor consists of a magneto resistive element 302 connected across the inputs of operational amplifier 304 to detect a current 306. The magneto resistive element 302 has the property that the resistance of the element changes with respect to the magnetic field caused by the current 306. This circuit requires the use of special technology which raises the cost of the device. Additionally, accuracy issues arise even though the current may be sensed with very low loss.

Referring now to FIG. 4, an alternative prior art technique for detecting current, through the use of a current transformer 402, is illustrated. As is shown, the current transformer 402 has a primary side 404 with a single loop and a secondary side 406 with multiple loops. A load resistance 408 is in parallel with the secondary side 406 of the transformer 402. The current transformer 402 is used to detect a current 410. The transformer 402 creates an output current equal to I_(p)/n, with I_(p) being the detected current and n being the turns ratio of the transformer 402. In this configuration, the resistance of the secondary side of the transformer is reflected to the primary side with the ratio 1/n². While current transformers work well for detecting currents, they are large and have a medium loss level and only work with alternating current (AC) circuits.

Another method for measuring currents involves the use of a Rogowski coil. Unfortunately, the voltage induced in a Rogowski coil is very small and easily disturbed when a measured current is less than, for example, 100 Amps. However, a Rogowski current transducer has a number of advantages over the current transformer illustrated in FIG. 4. For example, the Rogowski current sensor is linear, has no core saturation effects, has a wide bandwidth and a wide measurement range and is a relatively simple structure. The Rogowski coil comprises a toroidal winding placed around a conductor being measured. The Rogowski coil is effectively a mutual inductor coupled to the inductor being measured, where the output from the winding is an EMF proportional to the rate of change of current. While the above described techniques provide an indication of a sensed current in certain applications, the techniques, as noted above, individually have a number of short comings.

One application for current sensors is to measure current in a power supply. Referring to FIG. 24, illustrated is block diagram of a conventional transformer arrangement in a power supply using two current sensors 2401 and 2403. When drive signals A1 and A2 are asserted, turning on transistors 2405 and 2407, the current flows left to right through transformer 2409. When drive signals B1 and B2 are asserted, turning on transistors 2411 and 2413, the current flows right to left. In order to balance the current through the transformer, outputs from the two sensors (A sensed current and B sensed current) are used by a controller (not shown) to balance current through the transformer by adjusting the timing of the drive signals A1, A2, B1, and B2.

Such an arrangement of current sensors in a power supply has certain shortcomings. An improved current sensor for use, e.g., in power supplies, would be desirable.

SUMMARY

Accordingly, in one embodiment of the present invention, a current sensor is provided that includes a sensing circuit for sensing current and supplying indications thereof. The current sensor also includes a plurality of output terminals coupled to the sensing circuit. The plurality of output terminals alternately supply respective indications of the sensed current according to control signals supplied to the apparatus. The number of output terminals supplying indications of the sensed current may be, e.g., two, four, or more.

The apparatus may further include a plurality of input terminals coupled to receive respective ones of the control signals and reset logic coupled to the input terminals to provide a reset signal to the sensing circuit according to the control signals. The control signals are typically also coupled to control current flow through a power supply.

In an embodiment, the apparatus is operable in a first mode in which the reset logic utilizes four time-varying control signals to determine the reset signal to reset the sensing circuit and is operable in a second mode in which the reset logic is responsive to two time-varying control signals to determine the reset signal to reset the sensing circuit.

In another embodiment a current sensor is provided that is operable to supply indications of sensed current on only one output terminal in a first mode and to supply in a second mode indications alternately on two or more output terminals according to values of control signals supplied to the current sensor. The current sensor may further include a reset circuit and a current sensing circuit including an integrator. In the second mode values on two or more input terminals coupled to receive respective time varying input signals are used by the reset circuit to determine the reset signal to reset the integrator.

In another embodiment a method is provided that includes supplying respective indications of sensed current alternately on two or more output terminals of an integrated circuit. The method may further include resetting an integrator used to generate the indications of sensed current according to values of time-varying control signals supplied to the integrated circuit. Respective ones of the output terminals are supplied with the respective indications of sensed current according to a plurality of the time-varying control signals.

In another embodiment a method is provided that includes sensing current in a current sensing circuit; supplying in a first mode indication of the sensed current on only one output terminal; and supplying in a second mode indication of the sensed current alternately on two or more output terminals according to values of control signals supplied to the current sensor.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention may be better understood, and its numerous objects, features, and advantages made apparent to those skilled in the art by referencing the accompanying drawings in which the use of the same reference symbols in different drawings indicates similar or identical items.

FIG. 1 illustrates a prior art current sensor.

FIG. 2 illustrates a further prior art current sensor.

FIG. 3 illustrates yet another prior art current sensor.

FIG. 4 illustrates a further prior art current sensor.

FIG. 5 a illustrates a coil in close proximity with a large current carrying wire, according to an embodiment of the present invention.

FIG. 5 b illustrates a perspective cut away view of an integrated circuit, including a coupled coil and wire.

FIG. 6 is a cross-sectional view of a first embodiment of an integrated current sensor package.

FIG. 7 is a top view of the first embodiment of the integrated current sensor package.

FIG. 8 is a model (equivalent circuit) of the integrated current sensor illustrated in FIGS. 6 and 7.

FIG. 9 is a cross-sectional view of an alternative embodiment of the integrated current sensor package.

FIG. 10 is a top view of the alternative embodiment of the integrated current sensor package of FIG. 9.

FIG. 11 is a model (equivalent circuit) of the alternative embodiment of the integrated current sensor package illustrated in FIGS. 9 and 10.

FIG. 12 is a schematic diagram of an integrated current sensor.

FIG. 13 is a schematic diagram illustrating an integrated current sensor within a switched power supply circuit.

FIG. 14 is a timing diagram illustrating operation of the switched power supply circuit of FIG. 13.

FIG. 15 illustrates a further circuit for controlling a reset switch of an integrated current sensor.

FIG. 16 is a top view of a further embodiment of the integrated current sensor package.

FIG. 17 is a cross-sectional view of the embodiment of the integrated current sensor package in FIG. 16, along the line 17-17.

FIG. 18 is a further cross-sectional view of the embodiment of the integrated current sensor package in FIG. 16, along the line 18-18.

FIG. 19 is an electrical schematic of a circuit that includes a current sensor implemented in a buck converter application.

FIG. 19 a is a timing diagram illustrating operation of the circuit of FIG. 19.

FIG. 20 is an electrical schematic of a circuit that includes a current sensor with a reset circuit, configured according to one aspect of the present invention.

FIGS. 20 a and 20 b are timing diagrams that illustrate operation of the reset circuit of FIG. 20.

FIG. 21 a illustrates an embodiment in which two coils are used to sense the current instead of one.

FIG. 21 b illustrates another two coil embodiment in which the current carrying wire implemented on the current sensor package is “U” shaped.

FIG. 22 illustrates another view of an embodiment of a dual coil current sensor.

FIG. 23 illustrates how the dual coils are coupled to the integrator in an exemplary embodiment.

FIG. 24 illustrates a block diagram of a conventional transformer arrangement in a power supply using two current sensors.

FIG. 25 illustrates an embodiment in which a single current sensor receives the drive signals for the transformer and supplies two output signals indicative of the current through the transformer.

FIG. 26 illustrates an embodiment of a current sensor used in FIG. 25.

FIG. 27 illustrates an embodiment in which a current sensor is shown in a transformer arrangement.

FIG. 28 is a timing diagram illustrating the operation of the current sensor outputs and reset given the time-varying values of the drive signals.

FIG. 29 illustrates a reset circuit according to an embodiment of the invention.

FIG. 29A illustrates operation of switches associated with the output signals.

FIG. 30 illustrates a timing diagram illustrating operation of the current sensor reset and outputs in a two-wire mode.

FIG. 31 illustrates a block diagram of an exemplary flux control implementation using a single current sensor and external control circuitry to monitor the current sensor outputs and adjust the system timing to balance the currents through the transformer.

FIG. 32 illustrates an embodiment of a current sensor for use in a multi-phase converter having more than two phases.

DESCRIPTION OF THE PREFERRED EMBODIMENT(S)

Referring now to the drawings, and more particularly to FIG. 5 a, there is illustrated a coil 502 in close proximity with a large current carrying wire (or conductor) 504 such that the coil 502 and current carrying wire 504 act as coupled inductors. The coupled inductors, along with on-chip electronics, which will be discussed herein below, allow for the creation of the V_(SENSE) signal which is proportional to an input current i_(p) in a manner that has very low loss, is very small and is a low cost implementation. This generally provides a better solution than the implementations described with respect to FIGS. 1-4. The current provided through the current carrying wire 504 may be up to, for example, 10 A. The coil 502 is placed near the current carrying wire 504 in order to create inductive coupling between the wire 504 and coil 502. As shown, the wire 504 overlaps only one side of the coil 502 such that the windings are all going the same way and the magnetic flux adds together. This causes an induced current in the other side of the coil 502 that is not overlapped by the wire 504.

Referring now to FIG. 5 b, there is illustrated a perspective cut away view of the coil 502 and wire 504 illustrated in FIG. 5 a. In this configuration one of the coupled inductors is placed within a silicon dioxide layer 604 on top of a die 606 of an integrated circuit chip. The coil 502 consists of metal runs in, for example, an M5 layer located within the silicon dioxide layer 604. The wire 504 would rest on the silicon dioxide layer 604 in close enough proximity to the coil 502, such that current passing through the wire 504 would induce another current within the portion of the coil 502 over which the wire 504 was not located.

There are multiple ways for implementing the coupled inductor configuration within a chip package. The first of these comprises an on-chip solution with bumping copper, as illustrated in FIG. 6. Flip chip bump houses can deposit a copper wire 602 on top of a silicon dioxide layer 604 of a die 606. The copper wire 602 may comprise, for example, 15 μm of copper. As is illustrated, the coil 502 is embedded within the silicon dioxide layer 604.

Referring now to FIG. 7, there is illustrated a top view of the package configuration. The copper wire 602 is placed upon the silicon dioxide layer 604 of the die 606 (not shown in FIG. 7). The coil 502 is located within the silicon dioxide layer 604 parallel to the wire 602. Bond wires 702 connect the copper wire 602 on the die 606 with external outputs. The bond wires 702 typically support a maximum current of 1-2 amps, thus many bond wires are required to be connected to the copper wire 602 for higher currents. Additional bond wires 704 connect portions of the die 606 to external pins 706 of the chip. Using the above-described package configuration, a 10 A sensor may be readily constructed.

Referring now to FIG. 8, there is provided a model (equivalent circuit) of the inductive coil package illustrated in FIGS. 6 and 7. The coil 802 on the primary side comprises a 500 pH coil. The coil 804 on the secondary side comprises a 2 μH coil. Connected to a first side of the 500 pH coil 802 is a 1.5 mOhm resistor 808 in series with a 0.5 mOhm resistor 810. Connected to one output side of the 2 μH coil 804 is a 20 kOhm resistor 812. The 0.5 mOhm resistor 810 comprises the resistance provided by the coil 802. Since the copper wire 602 is not too thick and lies very close to the coil 502 of the chip, coupling coefficients between the copper wire 602 and the coil 502 are very good, assuming there is a distance of approximately two microns from the coil 502 (e.g., formed in an M5 layer) to the copper wire 602.

Referring now to FIG. 9, there is illustrated an alternative configuration wherein a package lead frame and flip chip configuration are used. A custom package lead frame may be designed as follows. The die 902 is placed upside down with the silicon dioxide layer 904 suspended a short distance above a large copper slug 906. The copper slug 906 may have a large cross-sectional area for low loss. In this embodiment the slug 906 has a 200×200 μm cross-section. The die 902 is suspended above the copper slug 906 on solder balls 908, which rest on top of a lead frame 910. When heat is applied to the circuit, the solder bumps 908 reflow causing the silicon dioxide layer 904 to rest directly upon the copper slug 906. In this design, the die chip 902 would be bumped and then flipped.

Referring now to FIG. 10, there is illustrated a top view of the embodiment of FIG. 9 with the silicon dioxide layer 904 resting on top of the copper slug 906. Bond wires 1002 may then be connected to appropriate portions of the M5 (or other metal layers) formed within the silicon dioxide layer 904. This design has a very low resistance.

Referring now to FIG. 11, there is illustrated a circuit representation of the embodiment illustrated in FIGS. 9 and 10. In this representation, a 200×200 μm copper slug 906 is utilized that is 3 μm away from the coil 502, and the primary side includes a 520 pH coil 1102 in series with a 0.5 mOhm resistor 1104. The secondary side consists of 2 μH coil 1106 in series with a 20 kOhm resistor 1108. The coupling coefficient is reduced due to the lower current density in the slug.

With reference to FIG. 16 there is illustrated a bottom view of a further configuration wherein a lead on chip configuration is used. The lead frame 1602 is connected to die 1604, by bond wires 1606. The wire 1608 is connected to the die 1604 by, for example, tape 1702. The wire 1608, a current carrying conductor, is inductively coupled to a coil in the die 1604.

Referring now to FIG. 17, there is illustrated a cross-sectional view of FIG. 16, along line 17-17. The die 1604 is connected to the wire 1608, via the tape 1702, as described previously. The lead frame 1602 connects to the die 1604, via bond wires 1606. The tape 1702 may be, for example, approximately 75 μm thick. As is shown, the structure is contained within a mold compound 1704. Referring now to FIG. 18, there is illustrated a cross-sectional view of FIG. 16, along line 18-18.

Turning to FIG. 12, there is illustrated a schematic diagram of the electronic circuit necessary for recreating the V_(SENSE) signal when detecting the current i_(p) using the coupled inductors as illustrated in FIGS. 5A and 5B. The coupled inductor 1202 comprises either of the configuration packages described hereinabove or, alternatively, may comprise a different undescribed configuration package that places the coil in close proximity with the wire to inductively couple them together. The primary side is modeled by inductor 1204 in series with resistor 1206. The secondary side is modeled by inductor 1208 which is connected to a resistor 1210. The resistor 1210 is then connected to ground. The other side of inductor 1208, which is connected to the negative (inverting) input of an operational amplifier 1212, outputs the induced current I_(n). The positive (non-inverting) input of operational amplifier 1212 is connected to ground.

The current through the secondary is dominated by the resistive loss of resistor 1210 and is the derivative of the primary current. An integrator circuit 1218 is used to integrate the induced current I_(n). The integrator circuit 1218 includes the operational amplifier 1212, a capacitor 1214 (connected between the output of operational amplifier 1212 and the negative input of operational amplifier 1212) and a reset switch 1216 (connected between the output of operational amplifier 1212 and the negative input of operational amplifier 1212) in parallel with the capacitor 1214. Thus, the current I_(n) may be determined according to the equation:

I _(n)=(L _(m) /R ₁)(di _(p) /dt)

By integrating on the capacitor 1214 an output voltage V_(SENSE) is attained according to the following equation:

V _(SENSE)=1/C∫I _(n) dt=(L _(m) /R ₁ C)i _(p)

In this case, L_(m), the mutual inductance, is well controlled, but can vary from part to part due to assembly variations. The capacitance C will vary from part to part and probably can be controlled to +/−5% accuracy. The capacitor 1214 will generally not have any appreciable temperature coefficient. R₁ is dominated by the metal resistance of the coil and will vary from part to part and is equal to the value of the resistor 1210 and also has a large temperature coefficient.

In order to obtain overall accuracy for the capacitance C which varies from part to part, factory calibration using a one time programmable (OTP) memory 1220 can be used. In a preferred embodiment, a low cost 32-bit OTP memory may be utilized. The OTP memory 1220 provides a control variable to a programmable gain amplifier 1222. The first gain stage 1223, consisting of programmable amplifier 1222, programmable resistance 1224 and the OTP memory 1220, compensates for part to part variations of the circuit. The OTP memory 1220 is programmed at the factory based upon measurements made there. The programmable gain amplifier 1222 has its negative input connected to the output of the operational amplifier 1212. A programmable resistance 1224 is connected between the output of the programmable amplifier 1222 and ground. The positive input of programmable amplifier 1222 is connected to the programmable resistance 1224. The value of the programmable resistance 1224, and thus the gain of the first gain stage 1223, is controlled by the values provided from the OTP memory 1220.

A second gain stage 1226 compensates for differences in the resistance caused by temperature variations in the device. A temperature sensor 1228 and an analog-to-digital converter (ADC) 1230 are used to generate a digital temperature value to compensate for the coil resistance temperature coefficient. The temperature sensor 1228 detects the temperature and generates an analog representation of the temperature. The ADC 1230 converts the analog signal into a digital signal. The digital temperature value is provided, via a control bus 1231, to control logic 1232. In one embodiment the control logic 1232 may consist of a look-up table. The look-up table would include various control values associated with particular temperature values. Alternative embodiments may include a microprocessor programmed to control the output according to various temperature levels or other types of digital logic. The control logic 1232 provides a control value to the programmable gain amplifier 1234 and programmable resistance 1236. The negative input of the amplifier 1234 is connected to the output of programmable amplifier 1222. The programmable resistor 1236 is connected between the output of programmable amplifier 1234 and ground. The positive input of the amplifier 1234 is connected to the programmable resistance 1236. The particular value of the programmable resistance 1236, and thus the gain of the second gain stage 1226, is controlled via the output from the control logic 1232. The output of the amplifier 1234 provides the compensated V_(SENSE) signal. The code provided by the control logic 1232 is updated during the phase in which the operational amplifier 1212 is reset responsive to a reset signal applied to switch 1216. The reset signal is applied while the sensed current i_(p) is zero.

The current sensor is designed to be used, for example, in a switched power supply. When the current i_(p) is equal to zero, a reset signal may be applied to switch 1216 to reset the capacitor 1214, and the logic value applied to amplifier 1234, via control logic 1232, is updated responsive to the presently sensed temperature from temperature sensor 1228. Referring now to FIG. 13, there is provided one example of how to apply the reset signal to a current sensor 1302 within a buck converter circuit. In this case, the buck converter circuit control signal φ₂ is applied to a transistor 1304 having its drain/source path connected between 12 volts and node 1306. A second transistor 1308 has its drain/source path connected between node 1306 and node 1310. The transistor 1308 is controlled by a second control signal φ₁. The current sensor 1302 is connected between node 1310 and ground to detect current i_(p) and provide a control signal V_(SENSE). An inductor 1312 is connected between node 1306 and node 1314. A capacitor 1316 is connected between node 1314 and ground. A load 1318 is also connected between node 1314 and ground. In one embodiment, the reset signal to switch 1216 of the current sensor 1302 may be configured to be the control signal φ₂.

As illustrated in FIG. 14, the current i_(p) is zero when signal φ₁ goes low and when signal φ₂ goes high at, for example, time t₁. Integrator 1218 is reset during phase two when signal φ₂ goes high and the current sensor would accept signal φ₂ as an input to drive the reset signal to switch 1216, since the current i_(p) is zero during this time. As can be seen each time the signal φ₂ goes high, the current i_(p) is zero enabling the reset signal to be applied to the integrator circuit 1218.

Referring now to FIG. 15, there is illustrated an alternative embodiment wherein the reset signal to the reset switch 1216 is generated responsive to a one-shot circuit consisting of negative glitch detect circuit 1502 and one-shot circuit 1504. When the current i_(p) goes low as illustrated, for example, at t₁ in FIG. 14, the negative glitch detect circuit 1502 will detect the negative edge of current i_(p). In response to this detection, the negative glitch detect circuit 1502 generates a pulse to the one-shot circuit 1504. The one-shot circuit 1504 then generates the reset signal to the reset switch 1216 responsive to the pulse from the negative glitch detect circuit 1502. Other methods for detecting when the sensed current i_(p) goes to zero may also be utilized for generating the reset signal to reset switch 1216. The examples illustrated in FIGS. 13-15 are merely provided as examples of some embodiments thereof.

With reference to FIG. 19, a relevant portion of a buck power converter 1900 is depicted that includes a current sensor 1902 that senses a current provided by a power source +V. Referring to FIG. 19 a, a timing diagram 1970 depicts various waveforms used in conjunction with the converter 1900. In this application, a signal φ₁ drives switch 1904 to cause a current ‘i’ to flow (from the power source +V through an inductor 1920) and power to be provided to a load 1912, through an inductor L1 and a capacitor C1. The current ‘i’ that flows through the inductor 1920 induces a current that flows through the inductor 1922 and resistor 1924, charging capacitor 1926. When the switch 1904 is conducting, switch 1906 is in a non-conducting state. Similarly, when the switch 1904 is in a non-conducting state, a signal φ₂ drives switch 1906 into a conducting state. The switches 1904 and 1906 may be, for example, implemented as enhancement-mode field-effect transistors (FETs).

As is also shown, the signal φ₂ may also function as a reset signal to drive a switch 1908 which, when conducting, shorts the capacitor 1926 of integrator 1910 and resets the integrator 1910 of the current sensor 1902. It should be appreciated that it is desirable for the reset signal to be turned off prior to a time when the current ‘i’ again flows through inductor 1920 in order to not adversely affect an output signal VOUT provided by the integrator 1910. In modern power converters this requirement can be difficult to meet as the falling edge of the signal φ₂ and the rising edge of the signal φ₁ may slightly overlap. In this event, the integrator 1910 may still be in a reset state when the current ‘i’ again begins flowing through the inductor 1920. As a result, the output signal VOUT (provided by the integrator 1910) will not provide an accurate indication of the current ‘i’ that flows through the inductor 1920. This is particularly true for a current, such as the current ‘i’ shown in FIG. 19 a, where the induced current is proportional to di/dt and the change in ‘i’ is most pronounced at the start of φ₁.

Turning to FIG. 20, a reset circuit 1950, configured according to one aspect of the present invention, is shown implemented in conjunction with the current sensor 1902 of FIG. 19. A control signal, as is shown in timing diagrams 1980 and 1990 of FIGS. 20 a and 20 b, respectively, corresponds to the signal φ₂ of FIG. 19 a. It should, however, be appreciated that the control signal may be a different signal having, for example, a different polarity. The reset circuit 1950 includes a one-shot multivibrator 1960 and an AND gate (or one or more logic gates) 1962. As is used herein, the term “one-shot circuit” or “one-shot multivibrator” is a device with one stable state that, responsive to an input signal, provides an output signal for a period of time before returning to the stable state. A reset signal is provided by the AND gate 1962, responsive to the control signal and a reset_one signal provided at the output of the multivibrator 1960. A pulse width of the reset signal corresponds to a pulse width of the shortest one of the reset and reset_one signals. As such, except for the case of extremely short pulse widths of control signals φ₁ and φ₂, depending upon the implementation, the reset circuit 1950 ensures that the reset of the integrator is shorter than the control signals and thus the integrator reset is released before the current rises substantially above zero, thus allowing accurate sensing of the current. It should be appreciated that the above-described reset circuit can be readily incorporated within the same integrated circuit that includes the current sensor, and the use of φ₂ (or other signal) readily allows for external timing control. Thus, one of the external pins 706 (FIG. 7) can be supplied with an appropriate φ₁ or φ₂ control signal for use to generate the reset signal, depending upon the location of the current sensor. Exemplary placements of the current sensor for a buck converter are illustrated in FIGS. 13 and 19.

In another embodiment, two coils are used instead of one to sense the current. Referring to FIG. 21 a, a top view of two coils 2101 and 2103 are seen in die 2105 vertically displaced from the current carrying wire 2107. The coils 2101 and 2103, shown as single turns for ease of illustration, may be multiple turn coils. In an exemplary embodiment, the width of the current carrying wire is 0.75 mm. The use of two coils allows significant cancellation of stray fields from external sources and, thus, more accurate current sensing in certain environments. In another embodiment illustrated in FIG. 21 b, the current carrying wire 2109 has a different configuration and is shaped as a “U”. Potential interferers, wires 2111 and 2115, are also illustrated. In both embodiments, the current carrying wires 2107 and 2109 may be copper and formed as part of the lead frame package housing the die with the dual coils. FIG. 22 illustrates another view of an embodiment of a dual coil current sensor implementation.

FIG. 23 illustrates an exemplary embodiment of how the dual coils are coupled to the integrator. For ease of illustration, the reset circuit and the calibration and temperature compensation circuits are omitted from the figure. As shown in FIG. 23, the direction of current in coil 2301 and 2303 causes the flux direction in the two coils to be in the opposite direction (one into the page and one out of the page), thus resulting in a substantial improvement in cancellation of interference over a single coil embodiment in certain applications. Note also that in FIG. 23 single turn coils are illustrated. In other embodiments, the coils may be implemented with the appropriate number of turns to adequately provide the current sensing capability.

Referring to FIG. 25, illustrated is an embodiment of a current sensor in which the drive signals A1, A2, B1 and B2 are supplied to a single current sensor 2501. In comparison to the approach illustrated in FIG. 24, note that only a single current sensor is used, thus saving parts and board space. The single current sensor senses the current in both the A path (drive signals A1 and A2 on) and the B path (drive signals B1 and B2 on) and provides an indication of the current sensed on separate outputs (A sensed current and B sensed current). Those outputs can then be supplied to control circuitry to balance the current flow through the transformer.

Referring to FIG. 26, an embodiment of current sensor 2501 is illustrated. The current sensor may be one of the embodiments described previously herein. For example, current sensor 2501 may be a packaged integrated circuit that includes a conductor 2601 carrying the current (IIN). The current flowing through conductor 2601 is inductively coupled to inductor 2605. Integrator 1218 functions in a manner described, e.g., in association with FIG. 12. The signal conditioner may include the first and second gain stages described in relation to FIG. 12. In addition, as described further herein, the signal conditioner 2609 includes appropriate logic to direct the sensed current to the appropriate output 2610 or 2612.

In an embodiment, current sensor 2501 includes four terminals R1, R2, R3, and R4 that are coupled to receive up to four drive signals. The drive signals are used to control both the reset logic 2614 and to determine which of the outputs 2610 and 2612 receive the sensed current. In addition the current sensor 1501 includes an input terminal 2618 to receive a control signal (mode).

The combination of the mode and drive signals controls the reset logic and the output signals. Operation of the reset logic and the output signals is illustrated with reference to FIGS. 27 and 28. With reference to FIG. 27, the current sensor 2501 is shown in a transformer arrangement. The drive signals PH1, PH2, PH3, and PH4 are coupled to control current through transistors Q1, Q2, Q3, and Q4. The drive signals are supplied to the input terminals R1, R2, R3, and R4. The mode signal is coupled to ground. FIG. 28 illustrates the operation of the current sensor given the values of the drive signals and the mode signal.

During time period 2801, switches Q1 and Q4 are on and the current sensor is in a measuring state. The output OUT2 supplies the measured current from the integrator 1218 during this time period. During time period 2803, the reset circuit supplies a reset signal to reset the integrator as described in more detail herein. The switches Q1 and Q2 are on. During time period 2805, switches Q2 and Q3 are on and the current sensor is in a measuring state. The output OUT1 supplies the measured current from the integrator 1218 during this time period. During time period 2807, the reset circuit again supplies a reset signal to reset the integrator as described in more detail herein. The switches Q3 and Q4 are on. Thus, the current sensor alternately supplies the measured current on outputs OUT1 and OUT2 based on the value of the drive signals and resets the current sensor, in particular the integrator, based on the values of the drive signals. Note that the integrator reset time (tR) is less than the time periods 2803 and 2807 through the use of a one-shot circuit. In an embodiment the length of tR may be adjusted using the input terminal TRST. TRST tied to VDD may give a first reset time, e.g., 120 ns. An external resistor may be used to adjust tR.

Referring to FIG. 29, the reset circuit 2614 is shown in more detail. In the embodiment shown in FIG. 29, the one shot circuit 2901, which may be implemented as one shot circuit 1950 shown in FIG. 20, is triggered by assertion of any of the nodes 2903, 2905, 2907 when the associated switch is closed. The embodiment illustrates in FIG. 29 supports multiple modes. In one mode, when mode=0, closing switch 2908, the one shot circuit 2901 is triggered by (R1×R2)+(R3×R4) on node 2907. When the mode is 0, four drive signals determine the reset timing. In another mode (two-wire mode), rather than using four drive signals to determine the integrator reset, two drive signals are used (R1 and R2). This mode is defined by mode=1 and R4=1, which closes switch 2906. The one shot is triggered by R1{circle around (x)}(R2+R3) on node 2905. In two-wire mode, R3 is held to zero, e.g., by grounding the R3 terminal or internally forcing R3 to 0. Alternate output terminals still supply the current measurements in two-wire mode.

FIG. 30 illustrates a timing diagram illustrating operation of the current sensor reset and outputs in the two-wire mode in which two time-varying drive signals are utilized to control reset and OUT1 and OUT2. The R3 and R4 inputs are coupled to static values (R3=0 and R4=1).

In a third mode, defined by mode=1 and R4=0, switch 2904 is closed, and a single output terminal is used to provide all current measurements. Node 2903 provides the reset pulse.

In addition to controlling the reset, the drive signal values also control which of the output terminals supply the measured signal. FIG. 29A illustrates conceptually a portion of the signal conditioner 2609 that controls the alternate output switching. In single output mode, the OUT1 and OUT2 signals are controlled by switches 2921 and 2923 such that OUT1 is coupled to the integrator and OUT2 is connected to ground.

In two output mode, referring to FIG. 28, during time period 2803, OUT1 is coupled to the integrator during time period 2803 after the reset signal is inactive, during time period 2805, and during time period 2807 while reset is active. OUT2 is coupled to the integrator during time period 2807 (after reset is inactive), during time period 2801, and 2803 while reset is active. Thus, Output 1 Control and Output 2 Control signals are configured to reflect those conditions. When not coupled to the integrator, the outputs may be coupled to ground. Of course, FIG. 29A is conceptual, and various implementations to achieve appropriate output switching would be known to those of skill in the art based on the teachings herein.

Referring to FIG. 31, illustrated is a block diagram of an exemplary flux control implementation using the current sensor and external control circuitry to monitor the peak values of OUT1 and OUT2, and adjust the system timing to force OUT1=OUT2. The current sensor with dual outputs is particularly useful in power supplies having a full wave or a push pull topology. The current sensor supplies OUT1 and OUT2 to the comparator circuit (or difference amplifier) 3101, which provides the difference to controller 3102. RC filters 3107 and 3109 allow the average output of OUT1 and OUT2 to be compared since they come at different times. Controller 3102 adjusts the timing of the drive signals 3103 to balance the flux through power supply 3105 based on the difference.

While the discussion above has focused on two phase systems, other embodiments contemplate use of a current sensor in multi-phase converters, e.g., in a multi-phase buck converter. For example, referring to FIG. 32, an exemplary current sensor 3201 receives drive signals R1 to RM corresponding to drive signals used in the multi-phase converter. Current sensor 3201 supplies output signals OUT1 to OUTN, each output corresponding to a different phase of the converter. In an embodiment N may be 4 or 8 and M may be 8 or 16. The drive signals are used to determine both the reset of the current sensor logic and to determine which of the outputs receive the sensed current.

Although various embodiments have been described in detail, it should be understood that various changes, substitutions and alterations can be made therein without departing from the scope of the invention as defined by the appended claims. 

1. An apparatus comprising: a sensing circuit for sensing current and supplying indications thereof; two or more output terminals coupled to the sensing circuit; and wherein the two or more output terminals are coupled to the sensing circuit to alternately supply respective indications of the sensed current according to control signals supplied to the apparatus.
 2. The apparatus of claim 1, further comprising: a plurality of input terminals coupled to receive respective ones of the control signals; and a reset logic circuit coupled to the input terminals to provide a reset signal to the sensing circuit according to the control signals.
 3. The apparatus as recited in claim 2, wherein the apparatus is an integrated circuit.
 4. The apparatus as recited in claim 2, wherein the control signals are further coupled to control current flow through a power supply.
 5. The apparatus as recited in claim 4, further comprising a comparator circuit to compare signals supplied from the first and second output terminals and supply an indication thereof.
 6. The apparatus as recited in claim 2 wherein the plurality of input terminals comprise four input terminals to receive as the control signals, time varying control signals to control reset of the sensing circuit.
 7. The apparatus as recited in claim 2 wherein the plurality of input terminals includes at least one input terminal coupled to receive a static signal used in controlling reset of the sensing circuit.
 8. The apparatus as recited in claim 6 further wherein the apparatus is operable in a first mode in which the reset logic utilizes four time-varying control signals coupled to the four input terminals to determine the reset signal to reset the sensing circuit and is operable in a second mode in which the reset logic is responsive to two time-varying control signals coupled to two of the four input terminals and at least one static signal coupled to another of the four input terminals to determine the reset signal to reset the sensing circuit.
 9. The apparatus of claim 1, wherein at least four output terminals are coupled to the sensing circuit to alternately supply the respective indications of the sensed current according to the control signals supplied to the apparatus.
 10. A current sensor operable to supply in a first mode indications of sensed current on only one output terminal and to supply in a second mode indications of sensed current alternately on multiple output terminals, respective indications being supplied to respective output terminals according to values of control signals supplied to the current sensor.
 11. The current sensor as recited in claim 10 further comprising a reset circuit and a current sensing circuit including an integrator and wherein in the second mode values on two or more input terminals coupled to receive respective time varying input signals are used by the reset circuit to determine the reset signal to reset the integrator.
 12. The current sensor as recited in claim 11 further comprising at least one input terminal coupled to receive a static input signal and wherein the reset circuit is further responsive to the at least one static input signal to generate the reset signal.
 13. The current sensor as recited in claim 12 wherein at least one of the static input signals is a control signal used in determining whether the current sensor is operative in the first or the second mode.
 14. A method comprising supplying respective indications of sensed current alternately on first and second output terminals of an integrated circuit.
 15. The method as recited in claim 14 further comprising resetting an integrator used to generate the indications of sensed current according to values of time-varying control signals supplied to the integrated circuit.
 16. The method as recited in claim 14 further comprising supplying respective ones of the output terminals with the respective indications of sensed current according to a plurality of the time-varying control signals.
 17. The method as recited in claim 14 further comprising: comparing signals from the first and second output terminals and supplying an indication thereof; and balancing current through a power supply according to the comparison indication.
 18. The method as recited in claim 14 further comprising controlling current flow in a power supply using the time-varying control signals.
 19. The method as recited in claim 14 further comprising providing a first mode in which four time-varying control signals are used to control reset of an integrator used to sense current and providing a second mode in which two time-varying control signals are used to control reset of the integrator used to sense current.
 20. A method comprising: sensing current in a current sensing circuit; supplying in a first mode indication of the sensed current on only one output terminal; and supplying in a second mode indication of the sensed current alternately on two or more output terminals according to values of control signals supplied to the current sensor.
 21. The method as recited in claim 20 further comprising selecting between the operation in the first and second mode, at least in part, according to one or more static signals supplied on one or more input terminals.
 22. An apparatus comprising: an integrated circuit including a current sensing circuit operable to sense a current; and means for supplying respective indications of the sensed current alternately on a plurality of output terminals of the integrated circuit.
 23. The apparatus as recited in claim 22 wherein the current sensing circuit comprises an integrator and the apparatus further includes means for resetting the integrator according to time-varying control signals supplied to the apparatus.
 24. The apparatus as recited in claim 23 wherein the means for supplying is responsive to the time-varying control signals to supply respective ones of the output terminals with the respective indications of sensed current. 